/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.xd.manager;

import com.xy.biz.xd.domain.bo.DocumentFlowBO;
import com.xy.biz.xd.domain.bo.DocumentFlowNewAndModifyBO;
import com.xy.biz.xd.domain.query.DocumentFlowNewAndModifyQuery;

import java.util.Collection;
import java.util.List;
import java.util.Set;

/**
 *
 *
 * @author wcs
 * @date 2021-2-26
 */
public interface DocumentFlowNewAndModifyManager {

	/**
	 * 保存
	 *
	 * @param documentFlowNewAndModifyBO
	 */
	int saveDocumentFlowNewAndModify(DocumentFlowNewAndModifyBO documentFlowNewAndModifyBO);

	int saveAllDocumentFlowNewAndModify(List<DocumentFlowNewAndModifyBO> documentFlowNewAndModifyBOList);
	/**
	 * 更新
	 *
	 * @param documentFlowNewAndModifyBO
	 */
	int updateDocumentFlowNewAndModify(DocumentFlowNewAndModifyBO documentFlowNewAndModifyBO);
	int updateAllDocumentFlowNewAndModify(List<DocumentFlowNewAndModifyBO> documentFlowNewAndModifyBOList);

	/**
	 * 查找一个
	 *
	 * @param documentFlowId
	 * @return
	 */
	DocumentFlowNewAndModifyBO getDocumentFlowNewAndModify(Long documentFlowId);

	/**
	 * 设置评审人数量
	 * @param documentFlowBO
	 * @param reviewerNum
	 */
    void updateReviewerNum(DocumentFlowBO documentFlowBO, int reviewerNum);

	/**
	 * 获取评审人数量
	 * @param documentFlowBO
	 * @return
	 */
	int getReviewerNum(DocumentFlowBO documentFlowBO);


//	/**
//	 * 查找多个
//	 *
//	 * @param collection 标识集合
//	 */
//	List<DocumentFlowNewAndModifyBO> listDocumentFlowNewAndModifyById(Collection<Long> collection);
	/**
	 * 查找多个
	 *
	 * @param query 查找条件
	 */
	List<DocumentFlowNewAndModifyBO> listDocumentFlowNewAndModify(DocumentFlowNewAndModifyQuery query);

	/**
	 * 统计个数
	 *
	 * @param query 查找条件
	 */
	int countDocumentFlowNewAndModify(DocumentFlowNewAndModifyQuery query);

	List<DocumentFlowNewAndModifyBO> getDocumentFlowNewAndModifyList(Collection<Long> collect);
}
